package com.ks.app.product.hibernate;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.ks.app.admin.hibernate.KsMerchantRegist;

@Entity
@Table(name="K_Room")
public class KRoom implements java.io.Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -9184813681596997043L;
	private long roomID;//主键
	private String roomNo;//房间编号
	private String roomType;//房间类型
	private String roomStartDate;//开放开始日期
	private String roomEndDate;//开放结束日期
	private String roomStartTime;//开放时段
	private String roomEndTime;//截止时段
	private String roomState;//房间状态
	private int roomAmount;//房间数量
	private int roomPeos ;//房间容纳人数
	
	private KsMerchantRegist merRoom;//所属商家
	private String setOther; //这里还需设置一个其他（退订、是否加入自主组合）的属性
	
	@Id
	@GeneratedValue
	public long getRoomID() {
		return roomID;
	}
	public void setRoomID(long roomID) {
		this.roomID = roomID;
	}
	public String getRoomNo() {
		return roomNo;
	}
	public void setRoomNo(String roomNo) {
		this.roomNo = roomNo;
	}
	public String getRoomType() {
		return roomType;
	}
	public void setRoomType(String roomType) {
		this.roomType = roomType;
	}
	public String getRoomStartDate() {
		return roomStartDate;
	}
	public void setRoomStartDate(String roomStartDate) {
		this.roomStartDate = roomStartDate;
	}
	public String getRoomEndDate() {
		return roomEndDate;
	}
	public void setRoomEndDate(String roomEndDate) {
		this.roomEndDate = roomEndDate;
	}
	public String getRoomStartTime() {
		return roomStartTime;
	}
	public void setRoomStartTime(String roomStartTime) {
		this.roomStartTime = roomStartTime;
	}
	public String getRoomEndTime() {
		return roomEndTime;
	}
	public void setRoomEndTime(String roomEndTime) {
		this.roomEndTime = roomEndTime;
	}
	public String getRoomState() {
		return roomState;
	}
	public void setRoomState(String roomState) {
		this.roomState = roomState;
	}
	public int getRoomAmount() {
		return roomAmount;
	}
	public void setRoomAmount(int roomAmount) {
		this.roomAmount = roomAmount;
	}
	@ManyToOne
	public KsMerchantRegist getMerRoom() {
		return merRoom;
	}
	public void setMerRoom(KsMerchantRegist merRoom) {
		this.merRoom = merRoom;
	}
	public String getSetOther() {
		return setOther;
	}
	public void setSetOther(String setOther) {
		this.setOther = setOther;
	}
	public int getRoomPeos() {
		return roomPeos;
	}
	public void setRoomPeos(int roomPeos) {
		this.roomPeos = roomPeos;
	}
	
}
